package com.bill99.mw;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

/**
 * @author sheng.zhang
 * 
 */
public class BaseActivity extends Activity {

	protected TextView mainTitleTextView;

	protected Button backBtn;

	protected Button rightBtn;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
//		mainTitleTextView = (TextView) findViewById(R.id.main_title);
//		backBtn = (Button) findViewById(R.id.title_btn_back);
//		rightBtn = (Button) findViewById(R.id.title_btn_right);
//		//
//		backBtn.setOnClickListener(new OnClickListener() {
//			@Override
//			public void onClick(View v) {
//				back();
//			}
//		});
	}

	protected void back() {
		this.finish();
	}

	protected void setMainTitle(int resid) {
//		mainTitleTextView.setText(resid);
	}

	protected void goneBackBtn() {
//		backBtn.setVisibility(View.GONE);
	}

	protected void visibleBackBtn() {
//		backBtn.setVisibility(View.VISIBLE);
	}

	protected void setRightBtnText(int resid) {
//		rightBtn.setText(resid);
	}
}
